#ifndef BULLET_H
#define BULLET_H
#include<QTimer>
#include "specialteam.h"
#include<QGraphicsPixmapItem>
class bullet :public QObject, public Specialteam
{
    qreal x=0;qreal  y=0;
    qreal velocity=5;
    QTimer* moveTimer;
public:
   explicit bullet(QGraphicsItem *parent = nullptr);
    void setvelocity(qreal v);
    void setx(qreal x);
    void sety(qreal y);
public slots:
   void move();
};

#endif // BULLET_H
